package com.sq.partner.manager.dao.impl;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Repository;

import com.sq.partner.manager.dao.ChannelBusinessRealDao;
import com.sq.partner.manager.mybatis.model.ChannelBusinessReal;

@Repository
public class ChannelBusinessRealDaoImpl extends BaseDaoImpl implements ChannelBusinessRealDao {


	@Override
	public ChannelBusinessReal queryChannelBusinessReal(String channelCode) throws Exception {
		return (ChannelBusinessReal)this.query("queryChannelBusinessReal", channelCode);
	}

	@Override
	public void insertChannelBusinessReal(ChannelBusinessReal channelBusinessReal) throws Exception {
		this.add("insertChannelBusinessReal", channelBusinessReal);
	}

	@Override
	public void updateChannelBusinessRealNotNull(ChannelBusinessReal channelBusinessReal) throws Exception {
		this.update("updateChannelBusinessRealNotNull", channelBusinessReal);
	}
	
	@Override
	public List<Map<String, Object>> queryChannelClassification(Map<String, Object> map) throws Exception {
		List<Map<String, Object>> queryChannelClassification = queryList("queryChannelClassification", map);
		return queryChannelClassification;
	}
}
